package relation.d2_generalization;

public class People {
    private String name;
    private int age;

    public void eat() {
        System.out.println(name +"吃饭.");

    }
    public void sleep() {
        System.out.println(name +"睡觉.");
    }
}
